<template>
     <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage"
      :page-sizes="[5, 10, 15, 20]"
      :page-size="pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total">
    </el-pagination>
</template>

<script>
import { mapState, mapActions, mapMutations } from "vuex";
export default {
    //computed computed computed
    computed:{
    ...mapState('Order', ['currentPage','pageSize','total']),
    },
  methods: {
    ...mapActions('Order', ['sync_update_tableList']),
    ...mapMutations('Order', ['update_pageSize', 'update_currentPage']),
    handleSizeChange(pageSize) {
      this.update_pageSize(pageSize);
      this.sync_update_tableList();
    },
    handleCurrentChange(currentPage) {
      this.update_currentPage(currentPage);
      this.sync_update_tableList();
    }
  }
};
</script>

<style scoped>      
</style>



